{% extends 'ProjResManBundle::layout.html.twig' %}

{% block content %}
  
        <div>
             <h3>Programe de studiu: </h3>
             
             <h4>Nivel licenta</h4>
        <table>
            <thead>
                <tr>
                    <th>Specializare</th>
                    <th>Durata</th>
                    <th>Tip</th>
                    <th>Limba de predare</th>
                </tr>
            </thead>
            <tbody>
                {% for program in programs %}
                    <tr>
                        {% if program.level == 0 %} 
                                
                        <td>{{ program.profile }}</td>
                        <td>{{ program.duration}}</td>
                        <td>{{ program.type }}</td> 
                        <td>{{ program.language }}</td>
                        {% endif %}
                    </tr>
                {% endfor %}
                     <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </tbody>
        </table>
             
             <h4>Nivel master</h4>
        <table>
            <thead>
                <tr>
                    <th>Specializare</th>
                    <th>Durata</th>
                    <th>Tip</th>
                    <th>Limba de predare</th>
                </tr>
            </thead>
            <tbody>
                {% for program in programs %}
                    <tr>
                        {% if program.level == 1 %} 
                                
                        <td>{{ program.profile }}</td>
                        <td>{{ program.duration}}</td>
                        <td>{{ program.type }}</td> 
                        <td>{{ program.language }}</td>
                        {% endif %}
                    </tr>
                {% endfor %}
                     <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </tbody>
        </table>
             <div>
                <a href="{{ path('headmaster_academicprogram_add') }}">
                    <button type="button" class="btn btn-info">Adauga program de studiu</button></a>
            </div>
    </div>


{% endblock %}